package hlhj.fhp.supreme.adapters

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import hlhj.fhp.supreme.R
import hlhj.fhp.supreme.javabean.SpendHisBean
import hlhj.fhp.supreme.utils.MyUtils

/**
 * Created by Never Fear   on 2018\7\26 0026.
Never More....
 */
class SpendHisAdp(datas:ArrayList<SpendHisBean.DataBean>) :BaseQuickAdapter<SpendHisBean.DataBean,BaseViewHolder>(R.layout.spendhis_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: SpendHisBean.DataBean?) {
        helper?.setText(R.id.itemName,item?.goods.toString())
        helper?.setText(R.id.itemType,item?.type.toString())
        helper?.setText(R.id.itemPrice,"￥${item?.money.toString()}")
        helper?.setText(R.id.itemTime, MyUtils.timeStampToStrYMD(item?.create_time!!.toLong()))
    }
}